const adminsDao = require("../dao/adminsDao.js")

const login = async (parameter)=> await adminsDao.login(parameter)

const get = async ()=> await adminsDao.get()

const create = async (data) => await adminsDao.create(data)

//获取指定id
const getById = async (_id)=> await adminsDao.getById(_id)

//删除指定
const deleted = async (_id)=>  await adminsDao.deleted(_id)

//更新指定
const update = async(_id, parameter)=>await adminsDao.update(_id, parameter)
//搜索
const search = async (params)=> await adminsDao.search(params)

module.exports = {login,get,create,getById,update,deleted,search}